import java.util.Date;
import openvote.Eleitor
import openvote.Usuario

class BootStrap {

    def init = { servletContext ->
		Calendar calen = Calendar.getInstance();
		calen.set(1980, 01, 01);
		Date data = calen.getTime();
		
		if(Usuario.list().size()==0){
			new Usuario(usuario:"admin"
					,password:"admin"
					,email:"admin@fa7.edu.br").save(failOnError: true)
		}
		
		
	}
    def destroy = {
    }
}
